import React from "react"
import {HashRouter as Router, Route, Switch} from "react-router-dom"

import UsersPage from "../../pages/users"

import ImagePage from "../../pages/images"

class Main extends React.Component{
  render(){
    return(
      <React.Fragment>
        <Router>
          <Switch>
            <Route path= "/home/users" component= {UsersPage}></Route>
            <Route path= "/home/images" component= {ImagePage}></Route>
            
          </Switch>
        </Router>
    </React.Fragment>
    )
  }
}

export default Main